package com.xkdx.caipiao.presistence.welcome;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.caipiao.module.network.AbsAction;

public class WelcomeAction extends AbsAction {
	String devicetype, platform,version,devicetoken,uid;

	public WelcomeAction(String devicetype, String platform,String version,String devicetoken,String uid) {
		this.devicetype = devicetype;
		this.platform = platform;
		this.version = version;
		this.devicetoken = devicetoken;
		this.uid = uid;

	}

	@Override
	public void constructRequest() {

		HashMap<String, String> device = new HashMap<String, String>();
		device.put("devicetype", devicetype);
		device.put("platform", platform);
		device.put("version", version);
		device.put("devicetoken", devicetoken);
		device.put("uid", uid);

		String jsonlogin = constructJson(device);
		Parameter parameterlogin = new Parameter("System", "InfoCollect", jsonlogin);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameterlogin);

		requestData = constructMod(list);

	}
}
